

#import "WXUtil.h"
#import "ApiXml.h"
#import <Foundation/Foundation.h>


//通知的名字及参数
#define WX_PAY_RESULT   @"weixin_pay_result_isSuccessed"
#define IS_SUCCESSED    @"wechat_pay_isSuccessed"
#define IS_FAILED       @"wechat_pay_isFailed"

//微信APPID
#define WX_APP_ID       @"wx72df459ff40be35d"
//微信appsecret
#define APP_SECRET      @"d4624c36b6795d1d99dcf0547af5443d"
//商户号，填写商户对应参数（客户给）
#define MCH_ID          @"1332541001"
//商户API密钥，填写相应参数（客户给）
#define WX_PARTNER_ID      @"N2qduZ3ixIcFXdqA2pVGwvQnjl5jG4cW"
//支付结果回调页面（后台会给你）
#define NOTIFY_URL      @"http://58.60.186.53:8005/notify/notify_weixin.aspx"

#define PAY_URL @"https://api.mch.weixin.qq.com/pay/unifiedorder"


@interface payRequsestHandler : NSObject
{
    
    //lash_errcode;
    long     last_errcode;
    //debug信息
    NSMutableString *debugInfo;
    
    
}
-(id) init:(NSString *)body Total_fee:(NSString *)fee Order_no:(NSString *)order_no;
-(long) getLasterrCode;
-(NSString*) createMd5Sign:(NSMutableDictionary*)dict;
-(NSString *)getPrepayID;


-(NSString *)getNoncestr;

@end